pull: Rework delta superblock fetches to be async
authorColin Walters <walters@verbum.org>
Tue, 3 Jan 2017 15:45:58 +0000 (10:45 -0500)
committerAtomic Bot <atomic-devel@projectatomic.io>
Wed, 4 Jan 2017 16:32:11 +0000 (16:32 +0000)
commitd9f43cd2fbbd48b34c06552205eaf27eed1e1ae0
treed2c6a7bcd72e86454fdd6ae305528346d1b814c3
parentced22f6c9b096d6bb337886fafd06eae1b888005
pull: Rework delta superblock fetches to be async

For the pending libcurl port, the backend is a bit more
sensitive to the main context setup.  The delta superblock
fetch here is a synchronous request in the section that's
supposed to be async.

Now, libsoup definitely supports mixing sync and async requests, but it wasn't
hard to help the libcurl port here by making this one async. Now fetchers are
either sync or async.

Closes: #636
Approved by: jlebon
src/libostree/ostree-repo-pull.c